<?php
declare(strict_types=1);
namespace App\Api;

use App\ApiController;

use Field\SysMenuConst;
use Field\SysPagesConst;
use Field\SysRoleAuthConst;
use Field\SysRoleConst;


// hook api_menu_use.php

/**
 * @title   用户
 * @auth    true
 * @rank    3
 */
class Pages extends ApiController
{
    // hook api_menu_start.php


     /**
     * @title  会员信息
     * @login true
     * @rank    99
     */
    public function action_Index(): void
    {
        $pinyin = $this->request->param(SysPagesConst::Pinyin);
        $this->CheckEmpty([$pinyin],['路径']);
        $data = $this->SysPages->readByPinYin($pinyin);
        $this->response('0000',['data' => $data]);
    }

    // hook api_menu_end.php

}

?>